//
//  XZIdentityController.m
//  生活小助手
//
//  Created by lixiangzhou on 14-8-7.
//  Copyright (c) 2014年 lxz. All rights reserved.
//

#import "XZIdentityController.h"
#import "ZYInfoSearchController.h"
#import "ZYRevealSearchController.h"
#import "ZYLoseSearchController.h"

@interface XZIdentityController ()


@property (nonatomic,strong) UISegmentedControl *segment;


@end

@implementation XZIdentityController


- (void)viewDidLoad
{
    [super viewDidLoad];
    /**
     *  设置背景,标题
     */
    [self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"greenTableBG"]]];
    self.title = @"身份证查询";
    /**
     *  添加segment
     */
    UISegmentedControl *segment = [[UISegmentedControl alloc] initWithItems:@[@"信息查询",@"泄露查询",@"挂失查询"]];
    segment.frame = CGRectMake(0, CGRectGetMaxY(self.navigationController.navigationBar.frame), [UIScreen mainScreen].bounds.size.width, 29);
    segment.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:segment];
    self.segment = segment;
    segment.selectedSegmentIndex = 0;
    [segment addTarget:self action:@selector(segmentClick:) forControlEvents:UIControlEventValueChanged];
}

-(void)segmentClick:(UISegmentedControl *)segment
{
    int i = segment.selectedSegmentIndex;

}






@end
